package com.lcj.hub.db.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.sql.Timestamp;

import java.io.Serial;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 课程表 实体类。
 *
 * @author lcj
 * @since 2024-08-04
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "课程表")
@Table("courses")
public class Courses implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 课程ID，主键
     */
    @Id(keyType = KeyType.Auto)
    @Schema(description = "课程ID，主键")
    private Integer courseId;

    /**
     * 课程名称
     */
    @Schema(description = "课程名称")
    private String courseName;

    /**
     * 课程描述
     */
    @Schema(description = "课程描述")
    private String description;

    /**
     * 学分
     */
    @Schema(description = "学分")
    private Integer credits;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Timestamp createdAt;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Timestamp updatedAt;

}
